﻿@model DTcms.Model.BaseModel
@{
    var m = (DTcms.Model.article)Model.info["article"];
}
<div class="comment-box">
    <div class="index_module2" id="isjudgeable">
        <div class="hd"><span class="tit">网友留言评论<s class="bor"></s></span><span class="sub">(<span id="show_total_revert">0</span>)</span></div>
        <div class="user_comment">
            <div id="showcomment"></div>
            <div class="write2014">
                <ul id="login_info_cm" class="login_info_cm clearfix"></ul>
                <input type="hidden" id="istg" value="0" />
                <input type="hidden" id="isrep" value="0" />
                <input type="hidden" id="parentid" value="0" />
                <form id="myform" class="layui-form" url="">
                    <input id="chrmarkForm" name="chrmark" type="hidden" />
                    <div class="select_star_wrap clearfix">
                        <div class="layui-col-md6">
                            <div class="layui-form-item">
                                <label class="layui-form-label">信息获取</label>
                                <div class="layui-input-block">
                                    <input name="u_qq" type="text" id="qq" class="text" value="@(Model.userModel==null?"":Model.userModel.qq)" maxlength="49" placeholder="填入qq自动获取信息" tabindex="0" />
                                    <span id="error"></span>
                                    <span id="ajaxloading"></span>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">您的邮箱</label>
                                <div class="layui-input-block">
                                    <input name="u_mail" type="text" id="u_mail" class="text" value="@(Model.userModel==null?"":Model.userModel.email)" maxlength="35" placeholder="您的邮箱 选填" />
                                    <span class="sel_check_form" style="position: relative;left: 3px;top: 3px;" title="当有消息回复你时，会通知到你的邮箱">
                                        <input type="checkbox" name="is_email" id="is_email" value="1" title="通知" lay-skin="primary" checked>
                                    </span>
                                </div>
                            </div>
                        </div>
                        <div class="layui-col-md6">
                            <div class="layui-form-item">
                                <label class="layui-form-label">您的称呼</label>
                                <div class="layui-input-block">
                                    <input name="u_name" type="text" class="text" id="u_name" value="@(Model.userModel==null?"游客":Model.userModel.nick_name)" maxlength="16" placeholder="您的称呼 必须" />
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <label class="layui-form-label">您的网站</label>
                                <div class="layui-input-block">
                                    <input name="u_url" type="text" class="text" id="u_url" maxlength="35" value="" placeholder="您的网站 选填" />
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="cmt_txt" id="cmt_txt" contenteditable="true"></div>
                    <div class="cmt_control clearfix">
                        <div class="left">
                            <div class="emot po_re">
                                <a href="#" onClick="return insertEmot(this,'cmt_txt');" class="emot_btn">插入表情</a>
                            </div>
                        </div>
                        <div class="right">　<button type="submit" id="cmt_btn" class="cmt_btn">提交</button></div>
                        <div class="right">文明上网 礼貌发帖　<span id="cmt_tip">0/600</span></div>
                    </div>
                </form>
            </div>
        </div>
    </div>
</div>
<script type="text/javascript" src="/template/pc/main/default/js/comments2014.js"></script>
<script type="text/javascript" src="/template/pc/main/default/js/emotData.js"></script>
<script type="text/javascript">
    var nowdomain = '@Model.config.webpath';
    window['SHOPID'] = '0';
    window['STYLEID'] = '0';
    window['Default_tplPath'] = '@Model.templateskin/';
    window['CHANNELID'] = '@m.channel_id';
    window['ACTIVEID'] = '@m.id';
    layui.use(['jqueryform', 'myaspx'], function () {
        var os = layui.myaspx;
        os.Lotto();
        getNewRevertPage('1');
        $("#myform").chackTextarea(600, "cmt_txt", "cmt_tip", "cmt_btn", postRevertPage);
    });
</script>